package com.haiyu.manager.dao;

import com.haiyu.manager.dto.UserDTO;
import com.haiyu.manager.dto.UserInfoDTO;
import com.haiyu.manager.dto.UserInfoSearchDTO;
import com.haiyu.manager.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mapper.MyMapper;

import java.util.List;

@Repository
public interface UserInfoMapper extends MyMapper<UserInfo> {
    UserDTO getUserNickname(Integer AddressId);
    List<UserInfoDTO> getUserInfo(UserInfoSearchDTO userInfoSearch);

   int updateUserLabel(@Param("buyerOpenid") String buyerOpenid , @Param("userInfoLabel") Integer userInfoLabel);

    UserInfo getUserById(@Param("userId") Integer userId);

}
